/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bradley.principals.core.lsp.obey;

/**
 *
 * @author Balla
 */
public abstract class Account {
    protected int balance;
    protected int period;

    public Account(int balance, int period) {
        this.balance = balance;
        this.period = period;
    }

    
    public boolean openBalance(int balance)
    {
        this.balance = balance;
        return true;
    }
    
    public abstract boolean closeAccount();
    
    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }
    
}
